<%@ page import="com.tjsiqi.common.RequestHolder" %>
<%@ page import="com.tjsiqi.model.SysUser" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page import="java.io.Console" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%
        String ret = request.getParameter("ret");
        if(StringUtils.isNotBlank(ret)) {
            ret = URLEncoder.encode(ret);
        } else {
            ret = "";
        }
        String username = request.getParameter("username");
        if(StringUtils.isNotBlank(username)) {
            username = URLEncoder.encode(username);
        } else {
            username = "ceshi"+username;
        }

    %>
    <jsp:include page="/common/backend_common.jsp"/>
    <script type="application/javascript">
        $(function(){
            //显示和隐藏
            displayOrder();
            function displayOrder(){
                 var jbzCode ="${sessionScope.user.jbzCode}";
                console.log("jbzCode"+jbzCode);
                console.log(jbzCode.toString().indexOf("0000")==-1);
                if(jbzCode.toString().indexOf("0000")==-1){
                    $(".grey").hide();
                    $(".purple").hide();
                    $(".green").hide();
                }
            }
            //页面加载成功查询所有的
            loadNewsUserCount();
            loadOutJbzCount();
            function loadNewsUserCount() {
                $.ajax({
                    url: "/load/getNewUserCount.json",
                    success : function (result) {
                        if (result.ret) {
                            NewUserCount = result.data;
                            $("#newUserCount").html('+'+NewUserCount);
                            $("#newsCount").html('+'+NewUserCount);
                            $("#newsCount1").html(NewUserCount);
                        } else {
                            showMessage("加载新注册用户数", result.msg, false);
                        }
                    }
                })
            }

            function loadOutJbzCount() {
                $.ajax({
                    url: "/load/getOutJbzCount.json",
                    success : function (result) {
                        if (result.ret) {
                            OutJbzCountVo = result.data;
                            console.log("到期搅拌站"+JSON.stringify(OutJbzCountVo))
                            $("#outCount").html('+'+OutJbzCountVo.outJbzCountSum);
                            $("#outCount1").html(OutJbzCountVo.outJbzCountSum);
                            $("#outJbzCount").html('+'+OutJbzCountVo.outJbzCount);
                            $("#nearOutJbzCount").html('+'+OutJbzCountVo.nearOutJbzCount);
                        } else {
                            showMessage("加载到期搅拌站数", result.msg, false);
                        }
                    }
                })
            }

        })

    </script>
</head>

<body class="no-skin">
<div id="navbar" class="navbar navbar-default">
    <div class="navbar-container">
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
            <span class="sr-only">Toggle sidebar</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>

        <div class="navbar-header pull-left">
            <a href="/admin/index.page" class="navbar-brand">
                <small>
                   <image src="/assets/images/icon.png" style="width: 26px"></image>
                        建筑拌合料任务单控制台
                </small>
            </a>
        </div>
        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">

                <%--startnews消息--%>

                    <li class="grey"  >
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="icon-time icon-animated-vertical"></i>
                            <span id="outCount" class="badge badge-grey">0</span>
                        </a>

                        <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="glyphicon glyphicon-time"></i>
                                &nbsp;&nbsp;<span id="outCount1" class="badge badge-success">0</span>&nbsp;&nbsp;条通知
                            </li>

                            <li>
                                <a class="popstyle" href="/sys/user/JbzInfoM.page" target="_blank">
                                    <div class="clearfix">
											<span class="pull-left">
												<i class="glyphicon glyphicon-time"></i>
												已到期搅拌站
											</span>
                                        <span class="pull-right badge badge-success" id="outJbzCount" >+8</span>
                                    </div>
                                </a>

                            </li>

                            <li>
                                <a class="popstyle" href="/sys/user/JbzInfoM.page" target="_blank">
                                    <div class="clearfix">
											<span class="pull-left">
												<i class="glyphicon glyphicon-calendar"></i>
												即将到期搅拌站
											</span>
                                        <span class="pull-right badge badge-success" id="nearOutJbzCount" >+8</span>
                                    </div>
                                </a>

                            </li>

                            <li>
                                <a href="#">
                                    查看所有通知
                                    <i class="icon-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="purple">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="icon-bell-alt icon-animated-bell"></i>
                            <span id="newsCount" class="badge badge-important">0</span>
                        </a>

                        <ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="icon-warning-sign"></i>
                                &nbsp;&nbsp;<span id="newsCount1" class="badge badge-success">0</span>&nbsp;&nbsp;条通知
                            </li>



                            <li>
                                <a class="popstyle" href="/sys/dept/dept.page" target="_blank">
                                    <div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs btn-primary icon-user"></i>
												新注册用户
											</span>
                                        <span class="pull-right badge badge-success" id="newUserCount" >+8</span>
                                    </div>
                                </a>

                            </li>

                            <li>
                                <a href="#">
                                    <div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-pink icon-comment"></i>
												新闻评论
											</span>
                                        <span class="pull-right badge badge-info">+0</span>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    <div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-success icon-shopping-cart"></i>
												新订单
											</span>
                                        <span class="pull-right badge badge-success">+0</span>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    <div class="clearfix">
											<span class="pull-left">
												<i class="btn btn-xs no-hover btn-info icon-twitter"></i>
												粉丝
											</span>
                                        <span class="pull-right badge badge-info">+0</span>
                                    </div>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    查看所有通知
                                    <i class="icon-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="green">
                        <a href="#">
                            <i class="icon-envelope icon-animated-vertical"></i>
                            <span class="badge badge-success">0</span>
                        </a>

                        <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="icon-envelope-alt"></i>
                                5条消息
                            </li>

                            <li>
                                <a href="#">
                                    <img src="/assets/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
                                    <span class="msg-body">
											<span class="msg-title">
												<span class="blue">Alex:</span>
												不知道写啥 ...
											</span>

											<span class="msg-time">
												<i class="icon-time"></i>
												<span>1分钟以前</span>
											</span>
										</span>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    <img src="/assets/avatars/avatar3.png" class="msg-photo" alt="Susan's Avatar" />
                                    <span class="msg-body">
											<span class="msg-title">
												<span class="blue">Susan:</span>
												不知道翻译...
											</span>

											<span class="msg-time">
												<i class="icon-time"></i>
												<span>20分钟以前</span>
											</span>
										</span>
                                </a>
                            </li>

                            <li>
                                <a href="#">
                                    <img src="/assets/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar" />
                                    <span class="msg-body">
											<span class="msg-title">
												<span class="blue">Bob:</span>
												到底是不是英文 ...
											</span>

											<span class="msg-time">
												<i class="icon-time"></i>
												<span>下午3:15</span>
											</span>
										</span>
                                </a>
                            </li>

                            <li>
                                <a href="inbox.html">
                                    查看所有消息
                                    <i class="icon-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                <%--消息end--%>

                <li class="light-blue dropdown-modal">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle" id="dropdown-user">
                        <span class="user-info" style="margin-top: 9px;">
                            <small>欢迎:&nbsp;&nbsp;${sessionScope.user.username}</small>
                        </span>
                        <i class="ace-icon fa fa-caret-down"></i>
                    </a>
                    <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <%--<li>--%>
                            <%--<a href="#"> <i class="ace-icon fa fa-cog"></i>--%>
                                <%--设置--%>
                            <%--</a>--%>
                        <%--</li>--%>
                        <li>
                            <a class="popstyle" href="/sys/user/getUserInfo.json?jbzCode=${sessionScope.user.jbzCode}&userId=${sessionScope.user.id}" target="_blank"> <i class="ace-icon fa fa-user"></i>
                                个人资料
                            </a>
                        </li>

                        <li class="divider"></li>
                        <li>
                            <a href="/logout.page"> <i class="ace-icon fa fa-power-off"></i>
                                注销
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>

    </div>

</div>

<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <div id="sidebar" class="sidebar responsive">
        <script type="text/javascript">
            try {
                ace.settings.check('sidebar', 'fixed')
            } catch (e) {
            }
        </script>


        <ul class="nav nav-list">
            <li class="active">
                <a class="popstyle" href="/sys/navigation/navigation.page" target="_blank">
                    <i class="menu-icon fa fa-tachometer"></i>
                    <span class="menu-text"> 导航流程图 </span>
                </a>
                <b class="arrow"></b>
            </li>

            <%----------------------普通用户查看内容---------------------%>
            <%--任务单管理--%>
            <li class="menu">
            <a href="#" class="dropdown-toggle">
                <i class="menu-icon fa fa-desktop"></i>
                <span class="menu-text"> 任务单管理 </span>
                <b class="arrow fa fa-angle-down"></b>
            </a>

            <b class="arrow"></b>

            <ul class="submenu">
                <li class="">
                    <a class="popstyle" href="/sys/stRwd/stRwd.page" target="_blank">
                        <i class="menu-icon fa fa-caret-right"></i>
                        商砼任务单
                    </a>
                    <b class="arrow"></b>
                </li>
                <%--<li class="">--%>
                    <%--<a class="popstyle" href="/sys/stRwd/StRwdTJ.page" target="_blank">--%>
                        <%--<i class="menu-icon fa fa-caret-right"></i>--%>
                        <%--统计测试--%>
                    <%--</a>--%>
                    <%--<b class="arrow"></b>--%>
                <%--</li>--%>
                <%--<li class="">--%>
                    <%--<a class="popstyle" href="/sys/stRwd/StRwdTJ1.page" target="_blank">--%>
                        <%--<i class="menu-icon fa fa-caret-right"></i>--%>
                        <%--统计测试1--%>
                    <%--</a>--%>
                    <%--<b class="arrow"></b>--%>
                <%--</li>--%>
                <li class="">
                    <a class="popstyle" href="/sys/blank/page" target="_blank">
                        <i class="menu-icon fa fa-caret-right"></i>
                        沥青任务单
                    </a>
                    <b class="arrow"></b>
                </li>
                <li class="">
                    <a class="popstyle" href="/sys/blank/page" target="_blank">
                        <i class="menu-icon fa fa-caret-right"></i>
                        砂浆任务单
                    </a>
                    <b class="arrow"></b>
                </li>
                <li class="">
                    <a class="popstyle" href="/sys/blank/page" target="_blank">
                        <i class="menu-icon fa fa-caret-right"></i>
                        水稳任务单
                    </a>
                    <b class="arrow"></b>
                </li>
            </ul>
        </li>

            <%--统计与分析--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 统计与分析 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/SendCount/SendCount.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            发货单汇总
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/WeighCount/WeighCount.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            进货单汇总
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/SendOrder/SendOrder.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            发货单明细
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/WeighOrder/WeighOrder.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            进货单明细
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%--合同管理--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 合同管理 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/JbzContract/Contract.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            合同列表
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%--企业管理员用户管理--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 用户管理 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/unit/user/unitUser.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            用户列表
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%-------------管理员查看内容--------------------------%>
            <%--未处理任务单--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 未处理的任务单 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/stRwd/stRwdByManager.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            未处理订单
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%--搅拌站和施工方名录--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 搅拌站和施工方名录 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/user/JbzInfoM.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            搅拌站名录
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/wxOrderUnit/wxOrderUnit.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            施工方名录
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>
            <%--进货分析--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 进货分析 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/WeighCount/ProvideUnit.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            生产厂家
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/WeighCount/WeightTruck.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            车牌号
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/WeighCount/WeightGoodsName.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            材料
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/WeighCount/WeightSendUnit.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            供货商
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%--出货分析--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 出货分析 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/SendCount/SendUnitCount.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            施工单位
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/SendCount/SendNameCount.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            工程
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/SendCount/SendJbzCount.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            搅拌站
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%--考勤管理--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 考勤管理 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/StaffCheckIn/StaffCheckIn.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            考勤打卡列表
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%--合同备案--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 合同备案管理 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/XhContract/XhContract.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            合同备案列表
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

            <%--权限管理--%>
            <li class="menu">
                <a href="#" class="dropdown-toggle">
                    <i class="menu-icon fa fa-desktop"></i>
                    <span class="menu-text"> 权限管理 </span>
                    <b class="arrow fa fa-angle-down"></b>
                </a>

                <b class="arrow"></b>

                <ul class="submenu">
                    <li class="">
                        <a class="popstyle" href="/sys/dept/dept.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            用户管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/role/role.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            角色管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/aclModule/acl.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            权限管理
                        </a>
                        <b class="arrow"></b>
                    </li>
                    <li class="">
                        <a class="popstyle" href="/sys/log/log.page" target="_blank">
                            <i class="menu-icon fa fa-caret-right"></i>
                            权限更新记录
                        </a>
                        <b class="arrow"></b>
                    </li>
                </ul>
            </li>

        </ul>
        <!-- /.nav-list -->

        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left"
               data-icon2="ace-icon fa fa-angle-double-right"></i>
        </div>

        <div class="ace-settings-container" id="ace-settings-container">
            <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
                <i class="icon-cog bigger-150"></i>
            </div>

            <div class="ace-settings-box" id="ace-settings-box">
                <div>
                    <div class="pull-left">
                        <select id="skin-colorpicker" class="hide">
                            <option data-skin="no-skin" value="#438EB9">#438EB9</option>
                            <option data-skin="skin-1" value="#222A2D">#222A2D</option>
                            <option data-skin="skin-2" value="#C6487E">#C6487E</option>
                            <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
                        </select>
                    </div>
                    <span>&nbsp; 选择皮肤</span>
                </div>

                <div>
                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
                    <label class="lbl" for="ace-settings-navbar"> 固定导航条</label>
                </div>

                <div>
                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
                    <label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
                </div>

                <div>
                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
                    <label class="lbl" for="ace-settings-breadcrumbs">固定面包屑</label>
                </div>

                <div>
                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
                    <label class="lbl" for="ace-settings-rtl">切换到左边</label>
                </div>

                <div>
                    <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
                    <label class="lbl" for="ace-settings-add-container">
                        切换窄屏
                        <b></b>
                    </label>
                </div>
            </div>
        </div>
        <!-- /#ace-settings-container -->

        <script type="text/javascript">
            try {
                ace.settings.check('sidebar', 'collapsed')
            } catch (e) {
            }
        </script>
    </div>

    <div class="main-content">
        <iframe id="innerFrame" src="/sys/navigation/navigation.page" width="100%" style="min-height: 768px;"></iframe>
    </div>
    <!-- /.main-content -->

    <a href="index.html#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse display">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>

</div>
<!-- /.main-container -->

<script src="/assets/js/ace.min.js"></script>

<!--testdo-->

<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='/assets1/js/jquery-2.0.3.min.js'>"+"<"+"script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='/assets1/js/jquery-1.10.2.min.js'>"+"<"+"script>");
</script>
<![endif]-->

<!--[if !IE]> -->
<script type="text/javascript">
    window.jQuery || document.write("<script src='/assets/js/jquery.min.js'>" + "<" + "/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='/assets/js/jquery1x.min.js'>" + "<" + "/script>");
</script>
<![endif]-->

<script src="/assets1/js/ace-elements.min.js"></script>



<script>

    $(document).ready(function () {
        var jbzCode = "${sessionScope.user.jbzCode}";
        if(jbzCode.indexOf("0000")>-1){
            for (var i = 0; i <4 ; i++) {
                $('.menu').eq(i).hide();
            }
        }
        else{
            for (var i = 4; i <11 ; i++) {
                $('.menu').eq(i).hide();
            }
        }

        $(".popstyle").removeAttr("target");
        $(".popstyle").each(function () {
            var $this = $(this)
            tmp = $this.attr("href");
            $this.attr("data", tmp);
            $this.attr("href", "javascript:void(0)");
        })

        $(".popstyle").click(function () {
            var $this = $(this)
            $("iframe").attr(
                    'src',
                    $this.attr("data")
            );
        });

        $(".direct").click(function () {
            var $this = $(this)
            $("iframe").attr(
                    'src',
                    $this.attr("data-value")
            );
        });
        $("#dropdown-user").dropdown();
    });
</script>
</body>
</html>

